package com.example.demo.entity;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author Fyly
 * @since 2019-05-30
 */
public class Addr implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    @TableField("userId")
    private Integer userId;
    /**
     * 电话号码
     */
    @TableField("tel")
    private String tel;
    /**
     * 区域
     */
    @TableField("region")
    private String region;
    /**
     * 详细地址
     */
    @TableField("addr")
    private String addr;
    /**
     * 0 非默认 1 默认
     */
    @TableField("defaultFlag")
    private Integer defaultFlag;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    public String getRegion() {
        return region;
    }

    public void setRegion(String region) {
        this.region = region;
    }

    public String getAddr() {
        return addr;
    }

    public void setAddr(String addr) {
        this.addr = addr;
    }

    public Integer getDefaultFlag() {
        return defaultFlag;
    }

    public void setDefaultFlag(Integer defaultFlag) {
        this.defaultFlag = defaultFlag;
    }

    @Override
    public String toString() {
        return "Addr{" +
        "id=" + id +
        ", userId=" + userId +
        ", tel=" + tel +
        ", region=" + region +
        ", addr=" + addr +
        ", defaultFlag=" + defaultFlag +
        "}";
    }
}
